import { request } from '@/util/request'

/* *
* 获取验证码
*  */
export function getCode () {
  return request({
    url: '/user-service/code/generateCode',
    method: 'get'
  })
}

/* *
* 用户登录
*  */
export function userLogin (data) {
  return request({
    url: '/user-service/user/userLogin',
    method: 'post',
    data: data
  })
}

/* *
* 获取不同用户
*  */
export function getUserList (data) {
  return request({
    url: '/user-service/userOperate/getUserListByIdentifying',
    method: 'post',
    data: data
  })
}

/* *
* 获取app用户具体信息
*  */
export function getAppUserDetailData (id) {
  return request({
    url: '/user-service/userOperate/getAppUserDetail?id=' + id,
    method: 'get'
  })
}
